name=report

all : ${name}.pdf

PDFLATEX=TEXINPUTS=./packages/:./packages/todo:./packages/fink:./packages/natbib:./packages/blindtext/:./packages/beamer/base:./:${TEXINPUTS} pdflatex

${name}_deps=$(wildcard *.tex) ${name}.bib *payload.txt

${name}.pdf : ${${name}_deps}
	${PDFLATEX} ${name}.tex
	bibtex ${name}
	${PDFLATEX} ${name}.tex
	${PDFLATEX} ${name}.tex
	${PDFLATEX} -output-format=dvi ${name}.tex

temp-clean :
	rm -f *.aux *.log *.out *.lof *.lot *.toc\
    *.ilg *.glo *.gls *.idx *.ind *.bbl *.blg *.dvi *.snm *.nav

clean : temp-clean
	rm -f ${name}.pdf
